import request from '@/utils/request'

// 查询BwReason列表
export function listBwReason(query) {
    return request({
        url: '/api/v1/bw/reasonList',
        method: 'get',
        params: query
    })
}

// 查询BwReason详细
export function getBwReason (reasonId) {
    return request({
        url: '/api/v1/bw/reason/' + reasonId,
        method: 'get'
    })
}


// 新增BwReason
export function addBwReason(data) {
    return request({
        url: '/api/v1/bw/reason',
        method: 'post',
        data: data
    })
}

// 修改BwReason
export function updateBwReason(data) {
    return request({
        url: '/api/v1/bw/reason',
        method: 'put',
        data: data
    })
}

// 删除BwReason
export function delBwReason(reasonId) {
    return request({
        url: '/api/v1/bw/reason/' + reasonId,
        method: 'delete'
    })
}
